[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
chdir(EXPR)
chdir EXPR
Changes the working directory to EXPR, if possible.
If EXPR is omitted, changes to home directory.
Returns 1 upon success, 0 otherwise. See example
under die.
On MS-DOS, the path and/or the directory can be
specified.
chdir "c:/junk/subdir";
chdir "e:";
chdir "abc/xyz";
The first of these changes the default drive and
directory. The second changes to the default direc-
tory on drive E:. The third changes the directory
on the current drive. As with all filenames, for-
ward slashes are recommended inside perl. (See the
section on MS-DOS.)
See Also:
chroot
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson